﻿//*************************************************************************
//面向服务的协作式智能交通系统仿真软件SoC-ITSS v2.1 alpha
//发布单位：西北工业大学--巴黎高科MINES机器人与群智能系统联合实验室
//团队负责人：张凯龙 Zhang Kailong
//团队成员：张大方、杨安胜、王敏、谢策、王雨佳、谢尘玉等
//联系我们：kl.zhang@nwpu.edu.cn
//2012-2021
//*************************************************************************



using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CyberCarSimulation.Bean;

//*******************************************************
//
//文件名(File Name):           AboutSoftware.cs
//
//数据表(Tables):              nothing 
//
//作者(Author):                谢策
//
//日期(Create Date):           2019.9.18
//
//版本(Version):               Stark
//
//版本号(VersionID):           3.0
//
//修改记录(Revision History):
//
//      R1:
//          修改作者：         谢策
//          修改日期：         2019.9.18
//          修改理由：         增加界面控件
//
//*******************************************************

namespace CyberCarSimulation.Interface
{
    public partial class AboutUs : Form
    {

        private int FormLength = 700;

        private Panel TeacherPanel;
        private PictureBox TeacherPictureBox;
        private Label TeacherTypeLabel;
        private Label TeacherNameLabel;
        private Label TeacherEmailLabel;
        private Label TeacherAddressLabel;

        private Panel Student1Panel;
        private Label Student1NameLabel;
        private Label Student2NameLabel;
        private Label Student3NameLabel;
        private Label Student4NameLabel;
        private Label Student5NameLabel;
        private Label Student6NameLabel;


        public AboutUs()
        {
            InitializeComponent();
            ConfigTeacherPanel();
            ConfigStudent1Panel();
        }

        private void ConfigTeacherPanel() 
        {
            TeacherPanel = new Panel();
            TeacherPanel.Width = FormLength;
            TeacherPanel.Height = 100;
            TeacherPanel.Location = new System.Drawing.Point(0, 0);
            this.Controls.Add(TeacherPanel);

            //TeacherPictureBox = new PictureBox();
            //TeacherPictureBox.Size = new Size(60, 80);
            //TeacherPictureBox.Location = new System.Drawing.Point(10, 10);
            //string MapUrl = MainData.Map.GetMapImageURL();
            //string LogoUrl = MapUrl.Substring(0, MapUrl.Length - 22);
            //LogoUrl += "Images\\Teacher.png";
            //TeacherPictureBox.Image = Image.FromFile(LogoUrl);
            //TeacherPictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
            //TeacherPanel.Controls.Add(TeacherPictureBox);

            TeacherTypeLabel = new Label();
            TeacherTypeLabel.Font = new Font("微软雅黑", 11f, FontStyle.Bold);
            TeacherTypeLabel.Size = new Size(125, 20);
            TeacherTypeLabel.Location = new System.Drawing.Point(10, 10);
            TeacherTypeLabel.BackColor = Color.Transparent;
            TeacherTypeLabel.Text = "Project Leader:";
            TeacherPanel.Controls.Add(TeacherTypeLabel);

            TeacherNameLabel = new Label();
            TeacherNameLabel.Font = new Font("微软雅黑", 11f, FontStyle.Regular);
            TeacherNameLabel.Size = new Size(FormLength-200, 20);
            TeacherNameLabel.Location = new System.Drawing.Point(130, 10);
            TeacherNameLabel.BackColor = Color.Transparent;
            TeacherNameLabel.Text = "Zhang Kailong";
            TeacherPanel.Controls.Add(TeacherNameLabel);

            TeacherEmailLabel = new Label();
            TeacherEmailLabel.Font = new Font("微软雅黑", 11f, FontStyle.Regular);
            TeacherEmailLabel.Size = new Size(FormLength, 20);
            TeacherEmailLabel.Location = new System.Drawing.Point(10, 35);
            TeacherEmailLabel.BackColor = Color.Transparent;
            TeacherEmailLabel.Text = "kl.zhang@nwpu.edu.cn";
            TeacherPanel.Controls.Add(TeacherEmailLabel);

            TeacherAddressLabel = new Label();
            TeacherAddressLabel.Font = new Font("微软雅黑", 11f, FontStyle.Regular);
            TeacherAddressLabel.Size = new Size(FormLength, 20);
            TeacherAddressLabel.Location = new System.Drawing.Point(10, 60);
            TeacherAddressLabel.BackColor = Color.Transparent;
            TeacherAddressLabel.Text = "School of Computer, Northwestern Polytechnical University, Xi'an 710129, Shaanxi";
            TeacherPanel.Controls.Add(TeacherAddressLabel);
            
        }
        

        private void ConfigStudent1Panel()
        {
            Student1Panel = new Panel();
            Student1Panel.Width = FormLength;
            Student1Panel.Height = 250;
            Student1Panel.Location = new System.Drawing.Point(0, 100);
            this.Controls.Add(Student1Panel);

            Student1NameLabel = new Label();
            Student1NameLabel.Font = new Font("微软雅黑", 11f, FontStyle.Bold);
            Student1NameLabel.Size = new Size(105, 20);
            Student1NameLabel.Location = new System.Drawing.Point(10, 10);
            Student1NameLabel.BackColor = Color.Transparent;
            Student1NameLabel.Text = "Contributor:";
            Student1Panel.Controls.Add(Student1NameLabel);

            Student2NameLabel = new Label();
            Student2NameLabel.Font = new Font("微软雅黑", 11f, FontStyle.Regular);
            Student2NameLabel.Size = new Size(FormLength-120, 20);
            Student2NameLabel.Location = new System.Drawing.Point(110, 10);
            Student2NameLabel.BackColor = Color.Transparent;
            Student2NameLabel.Text = "Zhang Dafang(2012),Yang Ansheng(2014),Su Hang(2014),";
            Student1Panel.Controls.Add(Student2NameLabel);

            Student3NameLabel = new Label();
            Student3NameLabel.Font = new Font("微软雅黑", 11f, FontStyle.Regular);
            Student3NameLabel.Size = new Size(FormLength, 20);
            Student3NameLabel.Location = new System.Drawing.Point(10, 40);
            Student3NameLabel.BackColor = Color.Transparent;
            Student3NameLabel.Text = "Wang Min(2015),Xie Ce(2016),Wang Yujia(2017),Xie Chenyu(2018)";
            Student1Panel.Controls.Add(Student3NameLabel);

            //Student4NameLabel = new Label();
            //Student4NameLabel.Font = new Font("微软雅黑", 11f, FontStyle.Regular);
            //Student4NameLabel.Size = new Size(FormLength, 20);
            //Student4NameLabel.Location = new System.Drawing.Point(10, 100);
            //Student4NameLabel.BackColor = Color.Transparent;
            //Student4NameLabel.Text = "Ce Xie    2016";
            //Student1Panel.Controls.Add(Student4NameLabel);

            //Student5NameLabel = new Label();
            //Student5NameLabel.Font = new Font("微软雅黑", 11f, FontStyle.Regular);
            //Student5NameLabel.Size = new Size(FormLength, 20);
            //Student5NameLabel.Location = new System.Drawing.Point(10, 130);
            //Student5NameLabel.BackColor = Color.Transparent;
            //Student5NameLabel.Text = "Yujia Wang   2017";
            //Student1Panel.Controls.Add(Student5NameLabel);

            //Student6NameLabel = new Label();
            //Student6NameLabel.Font = new Font("微软雅黑", 11f, FontStyle.Regular);
            //Student6NameLabel.Size = new Size(FormLength, 20);
            //Student6NameLabel.Location = new System.Drawing.Point(10, 160);
            //Student6NameLabel.BackColor = Color.Transparent;
            ////后人打开chenyu即可
            ////Student6NameLabel.Text = "Chenyu Xie   2018";
            //Student1Panel.Controls.Add(Student6NameLabel);
        }

    }
}
